1.2.6.2. alpha.osx.cocoa.DirectIvarAssignmentForAnnotatedFunctions (ObjC)
Check for direct assignments to instance variables in the methods annotated with objc_no_direct_instance_variable_assignment.
Examples:
@interface MyClass : NSObject {} @property (readonly) id A; - (void) fAnnotated __attribute__(( annotate("objc_no_direct_instance_variable_assignment"))); - (void) fNotAnnotated; @end @implementation MyClass - (void) fAnnotated { _A = 0; // warn } - (void) fNotAnnotated { _A = 0; // no warn } @end